import api from "@/utils/http.js";

//获取轮播图
export const getList = (params) => api.post(`/admin/lsGalaxyInfo/selectIsCarousel`, params)
//获取登录验证码
export const getCode = (params) => api.get(`/captcha/acquire`, { params })
//登录接口
export const login = (params) => api.post(`/login`, params)
//注册接口
export const register = (params) => api.post('/register', params)
//获取详情
export const getDetail = (id) => api.get(`/admin/lsGalaxyInfo/query/${id}`)
//获取题目列表
export const getQuestionList = (params) => api.post(`/admin/quesion/pageList`, params)
//获取题目评论
export const getQuestionComment = (params) => api.post(`/admin/quesionComment/selectList`, params)
//添加评论
export const addQuestionComment = (params) => api.post(`/admin/quesionComment/add`, params)
export const getAllList = (params) => api.post(`/admin/galaxyInfo/pageList`, params)

